package Testdmo1;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-03-10
 * Time：23:00
 */
public class J3_10 {
//    public class FindOperation implements IOperation{
//        @Override
//        public void work(Bookshelf bookshelf) {
//            System.out.println("查询图书...");
//            int sz=bookshelf.getBooknum();
//            Scanner scanner=new Scanner(System.in);
//            System.out.print("请输入书名:");
//            String name1=scanner.nextLine();
//            for (int i = 0; i <sz ; i++) {
//                Book book=bookshelf.getBooks(i);
//
//                if (book.getName().equals(name1)) {
//                    System.out.println("查找成功,该书的信息为->");
//                    System.out.println(book);
//                    return;
//                }
//            }
//
//            System.out.println("未找到该书!");
//        }
//    }

}
